
<div class="listing-gallery" id="listing_video_content_{$v._id}">
    <table class="table table-striped table-striped-video m-b-none text-sm">
        <thead>
            <th class="col-sm-2">预览</th>
            <th>名称</th>
            <th class="col-sm-1">时长</th>
            <th class="col-sm-1">大小</th>
            <th class="col-sm-2">创建时间</th>
            <th class="col-sm-2">操作</th>
        </thead>
        <tbody class="gallery-content-video">
            {foreach from=$v.child_folders.video key=kk item=vv}
            <tr id="listing_item_{$vv._id}">
                <td class="v-middle">
                    <i class="fa fa-folder-open cursor-pointer m-t gallery-folder" 
                            data-card_id="{$v._id}" data-fid="{$vv.fid}" data-type="video"></i>
                </td>
                <td class="v-middle">
                    <font class="title">{$vv.title}</font>
                    <input type="text" class="form-control title-input default-hidden" 
                            value="{$vv.title}" data-folder_id="{$vv._id}" data-show_type="listing" />
                </td>
                <td class="v-middle">-</td>
                <td class="v-middle">-</td>
                <td class="v-middle">{($vv.ctime/1000)|date_format:"%Y-%m-%d %H:%M:%S"}</td>
                <td class="v-middle">
                    <a class="btn btn-xs btn-orange action-rename" data-show_type="listing">
                        <i class="fa fa-pencil"></i><span> 重命名</span>
                    </a>
                    <a class="btn btn-xs btn-red action-delete" data-folder_id="{$vv._id}" data-fid="{$vv.fid}" data-show_type="listing">
                        <i class="fa fa-trash-o"></i><span> 删除</span>
                    </a>
                </td>
            </tr>
            {/foreach}
            
            {foreach from=$v.attachments_video_info key=kk item=vv}
            {if $vv.folder_hid == $v.parent_folder.video.hid}
            <tr id="listing_item_{$vv._id}">
                <td class="v-middle">
                    <a href="/workbenchadmin/vod?_id={$vv._id}&card_id={$v._id}" title="{$vv.title}" target="_blank">
                        {if $vv.extra.cover}
                        <img src="/uploads{$vv.extra.cover}" class="thumb-lg" border="0" />
                        {else}
                        <i class="fa fa-film text-xxxl"></i>
                        {/if}
                    </a>
                </td>
                <td class="v-middle">{$vv.title}</td>
                <td class="v-middle">{$vv.extra.duration} 秒</td>
                <td class="v-middle">{$vv.filesize_format}</td>
                <td class="v-middle">{$vv.ctime}</td>
                <td class="v-middle">
                    <a href="/workbenchadmin/vod?_id={$vv._id}&card_id={$v._id}" class="btn btn-xs btn-orange edit-single" target="_blank">
                        <i class="fa fa-pencil"></i><span> 编辑</span>
                    </a>
                    <a class="btn btn-xs btn-info action-move" data-card_id="{$v._id}" data-a_id="{$vv._id}" data-folder_hid="{$vv.folder_hid}" data-type="video">
                        <i class="fa fa-pencil"></i><span>移动
                    </a>
                    <a href="{$_DOWNLOAD_URL}?_id={$vv._id}" class="btn btn-xs btn-lightblue" target="_blank">
                        <i class="fa fa-download"></i><span> 下载</span>
                    </a>
                </td>
            </tr>
            {/if}
            {/foreach}
        </tbody>
    </table>
</div>
